namespace ActiveRecordSample.Entities
{
	// Business class CustomerAddres generated from CustomerAddress
	// shvadskd [2008-10-20] Created

	using System;
	using System.ComponentModel;
	using Castle.ActiveRecord;

	[ActiveRecord("CustomerAddress")]
	public  class CustomerAddres 
		: ActiveRecordValidationBase<CustomerAddres> 
	{

		#region Property_Names

		public static string Prop_Customer = "Customer";
		public static string Prop_Address = "Address";
		public static string Prop_AddressType = "AddressType";
		public static string Prop_rowguid = "rowguid";
		public static string Prop_ModifiedDate = "ModifiedDate";

		#endregion

		#region Private_Variables

		private Customer _customerid;
		private Addres _addressid;
		private string _addressType;
		private byte[] _rowguid;
		private DateTime _modifiedDate;


		#endregion

		#region Constructors

		public CustomerAddres()
		{
		}

		public CustomerAddres(
			Customer p_customerid,
			Addres p_addressid,
			string p_addressType,
			byte[] p_rowguid,
			DateTime p_modifiedDate)
		{
			_customerid = p_customerid;
			_addressid = p_addressid;
			_addressType = p_addressType;
			_rowguid = p_rowguid;
			_modifiedDate = p_modifiedDate;
		}

		#endregion

		#region Properties

		[PrimaryKey("CustomerID", Access = PropertyAccess.NosetterLowercaseUnderscore)]
		public Customer Customer
		{
			get { return _customerid; }
		}

		[PrimaryKey("AddressID", Access = PropertyAccess.NosetterLowercaseUnderscore)]
		public Addres Address
		{
			get { return _addressid; }
		}

		[Property("AddressType", Access = PropertyAccess.NosetterCamelcaseUnderscore, NotNull = true, Length = 50)]
		public string AddressType
		{
			get { return _addressType; }
			set { _addressType = value; }
		}

		[Property("rowguid", Access = PropertyAccess.NosetterCamelcaseUnderscore, NotNull = true)]
		public byte[] rowguid
		{
			get { return _rowguid; }
			set { _rowguid = value; }
		}

		[Property("ModifiedDate", Access = PropertyAccess.NosetterCamelcaseUnderscore, NotNull = true)]
		public DateTime ModifiedDate
		{
			get { return _modifiedDate; }
			set { _modifiedDate = value; }
		}

		#endregion

	} // CustomerAddres
}

